package com.freightoa.sgl_login.data.datasource.database.model

/**
 * 作者：lhgray on 2025/3/27.
 * 邮箱：lhgray@163.com
 * 文件：com.freightoa.sgl_login.data.datasource.database.model
 */

/**
 * {
 *   "code": 200,
 *   "message_cn": "数据载入成功",
 *   "message_en": "Data Load Successfully",
 *   "data": {
 *     "appKey": "ZFWEI1Ep6lzMPgFNa+fcRA==",
 *     "appToken": "tk7PgaB4qq8bpVmvUJgZWiuq2Oi2nAKIZdwrJuWGSdI7tl5Ynid5wwLcWrJnLYWPT6+RpZFHAevAQA7zi9vN7PLwrHsrEGSOhZFn3DGmeNU=",
 *     "user": {
 *       "company_code": "STARCOAIR",
 *       "user_id": 87,
 *       "dept_id": 1,
 *       "user_name": "TEST",
 *       "cfs_party_id": 0
 *     }
 *   }
 *
 *
 * }
 */
data class Data(
    val appKey: String,
    val appToken: String,
    val user: User,
    var userType: UserType,
)

data class User(
    val company_code: String,
    val user_id: String,
    val dept_id: String,
    val user_name: String,
    val cfs_party_id: String,
)

/**
 * {
 *   "code": 200,
 *   "message_cn": "数据载入成功",
 *   "message_en": "Data Load Successfully",
 *   "data": {
 *     "user_type": "U",
 *     "description_cn": "仓库操作",
 *     "description_en": "Warehouse Operation"
 *   }
 * }
 */
data class UserType(
    val user_type: String = "",
    val description_cn: String = "",
    val description_en: String = "",

    )
